package com.neusoft.nep.supervisor.service.impl;

import com.neusoft.gene.nep.entity.Member;
import com.neusoft.nep.supervisor.dao.ISupervisorDao;
import com.neusoft.nep.supervisor.service.ISupervisorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: TODO   SupervisorServiceImpl 公众监督员模块业务实现类
 * @author: 君醉
 * @date: 2024/6/19 16:17
*/

@Service
//@Scope("prototype")
public class SupervisorServiceImpl  implements ISupervisorService {
//    根据类型在容器中查找ISupervisorDao接口的实现类对象然后自动注入
    @Autowired
// 接口隔离原则
    private ISupervisorDao supervisorDao;

    public void setSupervisorDao(ISupervisorDao supervisorDao) {
        this.supervisorDao = supervisorDao;
    }

    @Override
    public Member login(String logid, String logpwd) {
        System.out.println(supervisorDao.hashCode());
        return supervisorDao.login(logid, logpwd);
    }
}